package com.hoongs.v1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Repository
@TableName(value = "settings")
public class Settings {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String prop;

    @NotBlank(message = "请输入设置name值")
    private String name;

    @NotBlank(message = "请输入设置value值")
    private String value;

    private String remark;
}
